import request from '@/utils/request'

// 查询申购账户信息列表
export function listPurchaseRollOut(query) {
  return request({
    url: '/loan/purchaseRollOut/list',
    method: 'get',
    params: query
  })
}

// 查询申购账户信息详细
export function getPurchaseRollOut(purchaseRollOutId) {
  return request({
    url: '/loan/purchaseRollOut/' + purchaseRollOutId,
    method: 'get'
  })
}

// 新增申购账户信息
export function addPurchaseRollOut(data) {
  return request({
    url: '/loan/purchaseRollOut',
    method: 'post',
    data: data
  })
}

// 修改申购账户信息
export function updatePurchaseRollOut(data) {
  return request({
    url: '/loan/purchaseRollOut',
    method: 'put',
    data: data
  })
}

// 删除申购账户信息
export function delPurchaseRollOut(purchaseRollOutId) {
  return request({
    url: '/loan/purchaseRollOut/' + purchaseRollOutId,
    method: 'delete'
  })
}
